import request from '@/utils/request'

export function createdb(Rid,databaseName) {
  return request({
    url: '/db/createdb',
    method: 'post',
    params:{Rid,databaseName}
  })
}

export function createcondb(DBid,databaseName) {
  return request({
    url: '/db/createcondb',
    method: 'post',
    params:{DBid,databaseName}
  })
}
export function alldb() {
  return request({
    url: '/db/alldb',
    method: 'post',
   
  })
}
export function allindb() {
  return request({
    url: '/db/allindb',
    method: 'post',
   
  })
}
export function selectdb(DBid) {
  return request({
    url: '/db/onedb',
    method: 'post',
    params:{DBid}
  })
}

export function allincondb() {
  return request({
    url: '/db/allincondb',
    method: 'post',
   
  })
}

export function dbdetails(DBid) {
  return request({
    url: '/db/dbdetails',
    method: 'post',
   params:{DBid}
  })
}

export function showinstance(DBid) {
  return request({
    url: '/db/showinstance',
    method: 'post',
   params:{DBid}
  })
}


export function deletedb(DBid) {
  return request({
    url: '/db/deletedb',
    method: 'post',
   params:{DBid}
  })
}
export function setdbdetails(setid) {
  return request({
    url: '/db/setdbdetails',
    method: 'post',
   params:{setid}
  })
}

export function setshowinstance(setid) {
  return request({
    url: '/db/setshowinstance',
    method: 'post',
   params:{setid}
  })
}

export function setdbshowinstance(setid) {
  return request({
    url: '/db/setdbshowinstance',
    method: 'post',
   params:{setid}
  })
}